package com.windward.vii.utils.rongcloud.messages.extend;

import com.windward.vii.utils.rongcloud.messages.BaseMessage;
import com.windward.vii.utils.rongcloud.util.GsonUtil;

public class CallMessage extends BaseMessage {

    private String sessionID = "";
    private String userId = "";
    private String avtarURL = "";
    private String nickname = "";

    public transient static final String TYPE = "JPush:CallMessage";

    public CallMessage() {}

    public CallMessage(String sessionID, String userId, String avtarURL, String nickname) {
        this.sessionID = sessionID;
        this.userId = userId;
        this.avtarURL = avtarURL;
        this.nickname = nickname;
    }

    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, CallMessage.class);
    }

    public String getSessionID() {
        return sessionID;
    }

    public void setSessionID(String sessionID) {
        this.sessionID = sessionID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAvtarURL() {
        return avtarURL;
    }

    public void setAvtarURL(String avtarURL) {
        this.avtarURL = avtarURL;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
